package com.huatai.datacenter.entity.postdata;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.huatai.datacenter.entity.BaseEntity;
import com.huatai.datacenter.entity.dataquality.QualityRuleEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author Lion
 * @date 2023/6/14  18:28
 */
@Data
@TableName("tb_request")
public class HttpRequestEntity extends BaseEntity {

	@TableField("joinName")
	@ApiModelProperty("接入名称")
	private String joinName;

	@TableField("apiAddress")
	@ApiModelProperty("API地址")
	private String apiAddress;

	@TableField("bodyData")
	@ApiModelProperty("body参数")
	@JsonDeserialize(using = BodyDataDeserializer.class)
	private String bodyData;

	@TableField("appId")
	@ApiModelProperty("appId")
	private String appId;

	@TableField("appKey")
	@ApiModelProperty("appKey")
	private String appKey;

	@TableField("requestType")
	@ApiModelProperty("请求类型")
	private String requestType;

	@TableField("structure")
	@ApiModelProperty("指定的结构体")
	private String structure;

	@TableField("tableName")
	@ApiModelProperty("指定的表")
	private String tableName;

	@TableField("cron")
	@ApiModelProperty("cron表达式")
	private String cron;


	@TableField("pageIndex")
	@ApiModelProperty("指定页数")
	private int pageIndex;

	@TableField("pageSize")
	@ApiModelProperty("指定分页条数")
	private int pageSize;

	@TableField("jobId")
	@ApiModelProperty("jobId")
	private int jobId;

	@TableField(value = "qualityRule")
	@ApiModelProperty("质量规则")
	private String qualityRule;

	@TableField(value = "status")
	@ApiModelProperty("任务状态")
	private int status;

	@TableField(value = "modelId")
	@ApiModelProperty("模型id")
	private Long modelId;

	@TableField(value = "modelName")
	@ApiModelProperty("模型名称")
	private String modelName;



}
